package oop.Demo05;

public class Person {
    public Person() {
        System.out.println("person 无参执行");
    }

    public void say(){
        System.out.println("说了一句话");
    }
    private int money=10_0000_0000;

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }
    protected String name="jmz";
    //私有方法不可以被继承
    private void print(){
        System.out.println("Person");
    }
}
